package com.dubbo.service.impl;

import com.dubbo.entity.User;
import com.dubbo.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;

@Slf4j
@DubboService
public class UserServiceImpl implements UserService {


    @Override
    public User getById(Long id) {
        log.info("getById({})", id);
        User user = new User();
        user.setId(id);
        user.setName("dubbo");
        user.setAddress("A");
        user.setAge(11);
        return user;
    }
}
